let body = document.querySelector('body');
let container = document.querySelector('.container');
let hleft = document.querySelector('.hleft');
let nav = document.querySelector('nav');
let hidboxspan = document.querySelector('.hidboxspan');
let bkon = document.querySelector("#bkon");
let block = document.querySelectorAll(".block");
let x = 1;
let hidbox = document.querySelector('.hidbox');
bkon.onclick = function () {
    if (x == 1) {
        oncilckf();
        x = 0;
    } else {
        Restart();
        x = 1;
    }
}
function Restart() {
    hidbox.style.height = "0";
    body.style.overflowY = "scroll";
    container.style.display = "none";
    bkon.className = "bk";
    hleft.style = "none";
    nav.style = "none";
    hidboxspan.style.display = "none";
}
function oncilckf() {
    hidboxspan.style = "none";
    hidbox.style = "none";
    hleft.style.height = "0px";
    hidbox.style = "none";
    bkon.className = "bk1";
    body.style.overflow = "hidden";
    nav.style.backgroundColor = "black";

}
window.onload = function () {
    bkon.style.display = "none";
    setTimeout(() => {
        bkon.style = "none";
        Restart();
    }, 1000)
}